package idv.arthur.test;

import java.util.ArrayList;

public class ArrayListCopy {

	public static void main(String[] args) {
		
		ArrayList<String> arr1 = new ArrayList<String>();
		
		arr1.add("one");
		arr1.add("two");
		arr1.add("three");
		
		ArrayList<String> arr2 = new ArrayList<String>();
		
		arr2.addAll(arr1);
		
		arr2.remove(1);
		
		for(int i=0;i<arr1.size();i++) {
			System.out.println(arr1.get(i));
		}
		
		System.out.println();
		
		for(int i=0;i<arr2.size();i++) {
			System.out.println(arr2.get(i));
		}
	}

}
